package com.ljx.demo.config;


//@Configuration
//public class WebCorsConfiguration {
//
//    @Bean
//    public CorsWebFilter corsWebFilter(){
//        UrlBasedCorsConfigurationSource configurationSource = new UrlBasedCorsConfigurationSource();
//        CorsConfiguration corsConfiguration = new CorsConfiguration();
//
//        corsConfiguration.addAllowedHeader("*");
//        corsConfiguration.addAllowedMethod("*");
//        corsConfiguration.addAllowedOrigin("*");
//        corsConfiguration.setAllowCredentials(true);
//
//        configurationSource.registerCorsConfiguration("/**",corsConfiguration);
//        return new CorsWebFilter(configurationSource);
//    }
//
//}
